home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 75
/
MOBICLIC 75.ISO
/
pc
/
DATA
/
TCHATCHE
/
doggy75-84.cst
/
00105_Script_gestion_bouton_son
< prev
next >
Wrap
Text File
|
2005-06-13
|
1KB
|
48 lines
-- gestion du bouton son de l'interface
property s, nomS
global sonIntLangues,interlangues,laboActif
on beginSprite me
s = me.SpriteNum
sonIntLangues = 1
if sonIntLangues = 1 then
sprite(s).member = member("sonOn","doggy")
else
sprite(s).member = member("sonOff","doggy")
end if
nomS = sprite(s).member.name
end
on mouseEnter me
if _movie.pauseState() then exit
if laboActif=1 then exit
if interLangues=0 then exit
_player.cursor(280)
sprite(s).member = member(nomS & "R", "doggy")
end
on mouseLeave me
if _movie.pauseState() then exit
if interLangues=0 then exit
if laboActif=1 then exit
_player.cursor(-1)
sprite(s).member = member(nomS, "doggy")
end
on mouseUp me
if _movie.pauseState() then exit
if interLangues=0 then exit
if laboActif=1 then exit
case nomS of
"sonOn" : -- dΘsactiver le son
nomS = "sonOff"
sonIntLangues = 0
sprite(s).member = member("sonOff","doggy")
"sonOff" : -- activation du son
nomS = "sonOn"
sonIntLangues = 1
sprite(s).member = member("sonOn","doggy")
end case
end